home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / 3dprograms / rayshade-4.0 / etc / rsconvert / makefile.amiga < prev    next >
Makefile  |  1995-02-13  |  2KB  |  65 lines

  1. OPTIMIZE = -O3 -fno-defer-pop -fno-builtin
  2. CCFLAGS = -c -m68020 -m68881 -Dmain=mymain
  3. LDFLAGS = -m68020 -s
  4. CC = gcc
  5. MKDEP = /mkdep
  6. YACC = bison -y
  7. LEX = flex -l
  8. LIBRAYDIR = ../../libray
  9. INCLUDE = -I$(LIBRAYDIR) -I../..
  10. CFLAGS = $(CCFLAGS) $(INCLUDE) $(OPTIMIZE)
  11. LIBS = -lm -lfl
  12. YFLAGS = -d
  13.  
  14. CFILES = main.c yacc.c lex.c
  15. OBJS = main.o yacc.o lex.o
  16. DEPENDSRC = main.c yacc.y lex.l
  17.  
  18. .c.o:
  19.     $(CC) $(CFLAGS) $<
  20.     
  21. rsconvert: $(OBJS)
  22.     gcc $(LDFLAGS) -o rsconvert GNU:lib/stderrfix.o $(OBJS) $(LIBS)
  23.  
  24. clean:
  25.     delete y.tab.h $(OBJS) lex.c yacc.c quiet
  26.  
  27. # DO NOT DELETE THIS LINE
  28. main.o: main.c
  29. main.o: //config.h
  30. main.o: //libray/libcommon/color.h
  31. main.o: //libray/libcommon/common.h
  32. main.o: //libray/libcommon/error.h
  33. main.o: //libray/libcommon/expr.h
  34. main.o: //libray/libcommon/ray.h
  35. main.o: //libray/libcommon/transform.h
  36. main.o: //libray/libcommon/vector.h
  37. yacc.o: yacc.y
  38. yacc.o: //config.h
  39. yacc.o: //libray/libcommon/color.h
  40. yacc.o: //libray/libcommon/common.h
  41. yacc.o: //libray/libcommon/error.h
  42. yacc.o: //libray/libcommon/expr.h
  43. yacc.o: //libray/libcommon/ray.h
  44. yacc.o: //libray/libcommon/transform.h
  45. yacc.o: //libray/libcommon/vector.h
  46. #    $(CC) $(CCFLAGS) $(INCLUDE) $>.c
  47.     $(YACC) $(YFLAGS) $*.y
  48.     copy y.tab.c $*.c
  49.     delete y.tab.c
  50.     $(CC) $(CFLAGS) $*.c
  51. lex.o: lex.l
  52. lex.o: //config.h
  53. lex.o: //libray/libcommon/color.h
  54. lex.o: //libray/libcommon/common.h
  55. lex.o: //libray/libcommon/error.h
  56. lex.o: //libray/libcommon/expr.h
  57. lex.o: //libray/libcommon/ray.h
  58. lex.o: //libray/libcommon/transform.h
  59. lex.o: //libray/libcommon/vector.h
  60. #    $(CC) $(CCFLAGS) $(INCLUDE) $>.c
  61.     $(LEX) $*.l
  62.     sed -e "s/FILE \*yyin = stdin, \*yyout = stdout;/FILE *yyin = 0, *yyout = 0;/" <lex.yy.c >$*.c
  63.     delete lex.yy.c
  64.     $(CC) $(CFLAGS) $*.c
  65.